package io.plus.common.packet.auth;

import io.plus.common.packet.User;
import io.plus.common.packet.metadata.Command;
import io.plus.common.packet.metadata.ResponseMessage;
import io.plus.server.Status;
import lombok.Data;

@Data
public class HeartbeatResponseMessage extends ResponseMessage {


    private String token;
    private User user;

    /**
     * 失败
     */
    public HeartbeatResponseMessage(Command command, Status status) {
        this(command, status, null, null);
    }

    /**
     * 成功
     */
    public HeartbeatResponseMessage(Command command, Status status, String token, User user) {
        super(command, status);
        this.token = token;
        this.user = user;
    }


}
